//
//  DHBuyMember_InfoCell.m
//  Dresshere
//
//  Created by ZhangPeng on 2018/6/9.
//  Copyright © 2018年 张朋. All rights reserved.
//

#import "DHBuyMember_InfoCell.h"

@implementation DHBuyMember_InfoCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)updateCell:(NSDictionary *)dic{
    self.info1.text = [NSString stringWithFormat:@"服饰订阅  每月可订阅9件服饰"];
    self.info2.text = [NSString stringWithFormat:@"直购折扣  %.1f折",[[dic objectForKey:@"purchase_discount"] floatValue] * 10];
    self.info3.text = [NSString stringWithFormat:@"穿搭顾问  %@次",[dic objectForKey:@"modelling"]];
    self.info4.text = [NSString stringWithFormat:@"上门量体  %@次",[dic objectForKey:@"measure"]];
    
    CGFloat totalPrice = 0;
    totalPrice = [[dic objectForKey:@"price"] floatValue] * [[dic objectForKey:@"discount"] floatValue];
    self.info5.text = [NSString stringWithFormat:@"会员价格  %.2f元",totalPrice];
    self.info6.text = [NSString stringWithFormat:@"押金     %.2f元",[[dic objectForKey:@"deposit"] floatValue]];
    self.info7.text = [NSString stringWithFormat:@"新购会员优惠券 -200元"];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
